<?php
if (!empty($_GET['id']))$idResidence=$_GET['id'];
else header('Location:./../index.php');
include_once dirname(__FILE__)."/../../ini.php";
include_once ROOTDIR.'/common/header.php';
include 'leftMenu.php';
$residence=new Residence($idResidence);

echo "<u>".$residence->getNom()."</u><br>";
$paragraph=$residence->getParagraph();
echo $paragraph;

$serialResidence=urlencode(serialize($residence));

?>
	
<?php 
include_once ROOTDIR.'/common/footer.php';
?>